<?php

class AdminEnum
{

    #管理员权限
    const SUPPER_ADMIN_ROLE                            = 100;   //超级管理员
    const GENERAL_ADMIN_ROLE                           = 200;   //普通管理员
    const EDITOR_ROLE                                  = 300;   //编辑

    public static $admin_role =array(
        self::SUPPER_ADMIN_ROLE                     =>  '超级管理员',
        self::GENERAL_ADMIN_ROLE                    =>  '运营管理员',
        self::EDITOR_ROLE                           =>  '客服管理员',
    );

    #banner
    const  PC_INDEX_BANNER                          = 1;   //pc首页banner
    const  PC_MONEY_BANNER                          = 2;   //pc理财banner
    const  APP_INDEX_BANNER                         = 3;   //app首页banner
    const  APP_MONEY_BANNER                         = 4;   //app理财banner

    public static $banner =array(
        self::PC_INDEX_BANNER                     =>  'pc首页banner',
        self::PC_MONEY_BANNER                     =>  'pc理财banner',
        self::APP_INDEX_BANNER                    =>  'app首页banner',
        self::APP_MONEY_BANNER                    =>  'app理财banner',
    );


    public static $admin_roles = array(
        self::SUPPER_ADMIN_ROLE	 =>  array('name'=>'超级管理员', 'id'=>self::SUPPER_ADMIN_ROLE),
        self::GENERAL_ADMIN_ROLE	 =>  array('name'=>'运营管理员', 'id'=>self::GENERAL_ADMIN_ROLE),
        self::EDITOR_ROLE	 =>  array('name'=>'客服管理员', 'id'=>self::EDITOR_ROLE)
    );

    public static function GetAdminRole()
    {
        return self::$admin_role;
    }

}
?>